package com.youxin.cpcenter.service;

import com.youxin.busfoundation.bean.leads.RequestPoolBean;
import com.youxin.cpcenter.bean.CluePoolCompanyMemberBean;
import com.youxin.cpcenter.bean.CluePoolCompanyTotalBean;
import com.youxin.cpcenter.bean.RequestPoolCompanyTotalBean;
import com.youxin.cpcenter.model.TbEntCluePoolCompany;

import java.util.List;

/**
 * @desc 公司线索池服务
 * @author Kris.wang
 * @date 2017-12-05
 */
public interface CluePoolCompanyService {
    /**
     * @desc 根据用户ID和企业UID判断是否已收藏
     * @param bean
     * @return
     */
    int verify(RequestPoolBean bean);

    /**
     * @desc 根据企业UID和收藏的企业UID查询最新一条收藏记录
     * @param bean
     * @return
     */
    TbEntCluePoolCompany selectLatestRecord(RequestPoolBean bean);

    /**
     * @desc 根据企业UID获取跟进人
     * @param companyUid
     * @return
     */
    List<CluePoolCompanyMemberBean> selectMemberByComUid(String companyUid);

    /**
     * @desc 统计企业中不同状态的企业线索池
     * @param bean
     * @return
     */
    List<CluePoolCompanyTotalBean> total(RequestPoolCompanyTotalBean bean);
}
